package com.xingkeduo.business.user.feign;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/4/17 17:01
 **/

import com.xingkeduo.pojo.dto.BaseDTO;
import com.xingkeduo.pojo.utils.ResponseUtils;
import com.xingkeduo.util.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "business-operation", configuration = FeignConfig.class)
public interface OperationFeign {

    /**
     * 根据name获取城市
     *
     * @param name:
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/4/26 14:22
     */
    @GetMapping("/cms/op/country/name")
    String selectCity(@RequestParam("name") String name);

    /**
     * 查询城市
     *
     * @param param:
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/4/26 14:22
     */
    @GetMapping("/cms/op/office/lists/{param}")
    String selectCompany(@PathVariable("param") String param);

    /**
     * 店铺列表
     *
     * @param param:
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/4/26 14:22
     */
    @GetMapping("/cms/op/shops/lists/{param}")
    String shoplists(@PathVariable("param") String param);


    /**
     * 查询除了闭店的店铺列表
     *
     * @param :
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/6/1 11:21
     */
    @GetMapping("/cms/op/shops/getShopsList")
    ResponseUtils<List<BaseDTO>> getCanShopList(@RequestParam("statusList") String statusList);

    /**
     * 查询发型师服务技能servprodLists
     *
     * @param urlParam:
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/5/6 15:49
     */
    @GetMapping("/cms/op/servprod/lists/{urlParam}")
    String servprodLists(@PathVariable("urlParam") String urlParam);

    //门店服务  新
    @GetMapping("/cms/op/shops/getShopsSortInfo")
    ResponseUtils<BaseDTO> selectShopServiceInfo(@RequestParam("id") Long id);

    @GetMapping("/api/op/shops/getCityId")
    ResponseUtils<Long> getCityId(@RequestParam("id") long id);

    //测试
//    @PostMapping("/cms/op/vendor")
//    void insertVendor(@RequestBody VendorTable vendorTable);

}
